Conditions | 1 |
Paths | 1 |
Total Lines | 38 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | module.exports = function (grunt) { |
||
2 | |||
3 | //initialize tasks configurations |
||
4 | grunt.initConfig({ |
||
5 | exec: { |
||
6 | install_bower: { |
||
7 | cmd: 'bower install' |
||
8 | } |
||
9 | }, |
||
10 | copy: { |
||
11 | jquery: { |
||
12 | files: [{ |
||
13 | expand: true, |
||
14 | cwd: 'bower_components/jquery/dist', |
||
15 | src: '**', |
||
16 | dest: 'demo/browser/assets/jquery' |
||
17 | }] |
||
18 | }, |
||
19 | bootstrap: { |
||
20 | files: [{ |
||
21 | expand: true, |
||
22 | cwd: 'bower_components/bootstrap/dist/', |
||
23 | src: '**', |
||
24 | dest: 'demo/browser/assets/bootstrap' |
||
25 | }] |
||
26 | } |
||
27 | } |
||
28 | }); |
||
29 | |||
30 | //register npm tasks |
||
31 | grunt.loadNpmTasks('grunt-exec'); |
||
32 | grunt.loadNpmTasks('grunt-contrib-copy'); |
||
33 | |||
34 | //register tasks aliases |
||
35 | grunt.registerTask('build', ['exec', 'copy']); |
||
36 | grunt.registerTask('default', ['build']); |
||
37 | |||
38 | }; |
||
39 |